]> dgit.raspbian.org Git - gnome-shell.git/commit
boxpointer: Don't use the box allocation when calculating the arrow side
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 21 Dec 2012 14:17:49 +0000 (09:17 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 21 Dec 2012 17:24:48 +0000 (12:24 -0500)
commitd6cace32f579d54b878ff3a9c3dccbbbc03e55ea
tree39cbd0b055b83bebecea1253d576b2eab4ba7740
parent2388de455bc17f9d59e7ad6c716171cccaad9d5d
boxpointer: Don't use the box allocation when calculating the arrow side

Depending on the current state of arrowSide, the box allocation may be
wrong; e.g. if the user requested a TOP, but we flipped to a BOTTOM, the
next request would look to the y2 value of the flipped BOTTOM, which is
wrong.

Instead, use the origin, plus the calculated preferred size of the box.

https://bugzilla.gnome.org/show_bug.cgi?id=690608
js/ui/boxpointer.js